The EA has 3 modes:
1) brute force on a market interval
2) optimization of the best of the found variants
3) trading mode

You should always brute force first, and after brute force, you can skip optimization. The found variant can be tested in the Free Trade mode.
If you run optimization, then the optimized variant can be tested in the Trade Optimized mode.
Optimization is performed only after brute-force. All other parameters of the EA are identical to the corresponding parameters
of my program. The above applies to both versions of the EA. If you change the input parameters of the formula and the number of candles,
or the testing section, go to the terminal tester folder and delete the files that the EA has created.
All brute force and optimization parameters are saved in these files.

One more note. I am having problems with the MT5 version. I don’t understand yet the reasons, this may be in my system,
or in the terminal, but I can't find where the files are saved and why. The functions are the same that are used in MT4,
but they execute in different ways. I do not yet understand how to solve this problem, but perhaps you will not have it.   
       
 